﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebFormResponsableAsignarCentrodeCosto.aspx.cs" Inherits="Sitio.WebFormResponsableAsignarCentrodeCosto" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
     <link href ="estilo.css"  rel="Stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            font-weight: bold;
            text-decoration: underline;
            font-size: xx-large;
        }
        .style2
        {
            text-decoration: underline;
        }
        .style3
        {
            font-size: medium;
        }
        .style4
        {
            font-size: large;
            font-weight: bold;
        }
        .style5
        {
            font-size: medium;
            font-weight: bold;
        }
        .style6
        {
            color: #0000FF;
            font-size: large;
        }
        .style7
        {
            font-weight: bold;
        }
        .style8
        {
            text-align: left;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div style="font-size: medium">
    
        <span class="style1">Asignar Centro de Costo&nbsp;
        <br />
        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" 
            style="font-size: medium" Text="Regresar" />
        <br />
        </span><b><br class="style2" />
        <br class="style2" />
        </b>&nbsp;<b><span class="style3">RESPONSABLE:</span></b>&nbsp;&nbsp;
        <asp:DropDownList ID="ddlresponsable" runat="server" Height="24px" 
            style="font-size: medium" Width="281px" 
            onselectedindexchanged="ddlresponsable_SelectedIndexChanged" 
            ontextchanged="ddlresponsable_SelectedIndexChanged">
        </asp:DropDownList>
        <br />
        <span class="style4">&nbsp;</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <br />
        <br />
        <span class="style5">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span 
            class="style7"><span class="style6">&nbsp; 
        PORCENTAJE DE RESPONSABILIDAD</span></span><span class="style5"><br />
        </span>
        <asp:Label ID="Label2" runat="server" 
            style="font-size: large; font-weight: 700; color: #CC0000;"></asp:Label>
        <br />
        <br />
&nbsp;<span class="style4">PORCENTAJE:&nbsp;&nbsp;&nbsp;&nbsp; </span>
        <asp:TextBox ID="TextBox1" runat="server" style="font-size: medium" 
            Width="158px" ontextchanged="TextBox1_TextChanged" MaxLength="3"></asp:TextBox>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;<span class="style4">PORCENTAJE SIN ASIGNAR </span><asp:Label ID="LPERSONAL" 
            runat="server" style="font-size: large; font-weight: 700"></asp:Label>
        <br />
        <br />
        <b>&nbsp;FECHA:</b><asp:Calendar ID="Calendar1" runat="server" 
            BackColor="White" BorderColor="#999999" CellPadding="4" 
            DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" 
            Height="180px" Width="200px">
            <DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" />
            <NextPrevStyle VerticalAlign="Bottom" />
            <OtherMonthDayStyle ForeColor="#808080" />
            <SelectedDayStyle BackColor="#666666" Font-Bold="True" ForeColor="White" />
            <SelectorStyle BackColor="#CCCCCC" />
            <TitleStyle BackColor="#999999" BorderColor="Black" Font-Bold="True" />
            <TodayDayStyle BackColor="#CCCCCC" ForeColor="Black" />
            <WeekendDayStyle BackColor="#FFFFCC" />
        </asp:Calendar>
        <div class="style8">
        <br />
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="style7"><span class="style6">CENTRO DE COSTO</span></span><br />
                </div>
                <asp:GridView ID="grdcENTRODECOSTO" runat="server" AutoGenerateColumns="False" 
                    onrowcommand="ResultGrid_RowCommand" 
                    onselectedindexchanged="grdFamilias_SelectedIndexChanged" 
            Width="16px" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" 
            BorderWidth="1px" CellPadding="4" EnableModelValidation="True" 
            ForeColor="Black" GridLines="Horizontal">
                    <EmptyDataTemplate>
                        No se encontraron resultados para la busqueda.
                    </EmptyDataTemplate>
                    <Columns>
                        <asp:BoundField DataField="id" HeaderText="Codigo" Visible="false" />
                        <asp:TemplateField HeaderText="ASIGNAR">
                            <ItemTemplate>
                                <asp:BUTTON ID="Delete" runat="server" 
                                    CommandArgument='<%# DataBinder.Eval(Container.DataItem,"LCENTRODECOSTOS_ID1") %>' 
                                    CommandName="Eliminar"  />
                            </ItemTemplate>
                        </asp:TemplateField>
                       
                        <asp:BoundField DataField="SNOMBRECENTRODECOSTO1" HeaderText="NOMBRE" />
                        <asp:BoundField DataField="SDESCRIPCION1" HeaderText="DESCRIPCION" />
                         <asp:BoundField DataField="SDESCRIPCION1" HeaderText="PORCENTAJE" />
                    </Columns>
                    <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
                    <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
                    <SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
                </asp:GridView>
            <br />
    
    </div>
    </form>
</body>
</html>
